{% if not request.path.startswith('/admin') %}
<div class="sidebar pure-u-1 pure-u-md-1-4">
<div class="header">
<data class="u-photo" value="{{ config.ME.icon.url }}"></data>
<h1 class="brand-title"><a href="/">{{ config.NAME }}</a></h1>
<h2 class="brand-tagline">@{{ config.USERNAME }}@{{ config.DOMAIN }}</h2>
<h3>{{ config.SUMMARY | safe }}</h3>
<nav class="nav">
<ul class="nav-list">
<li class="nav-item"><a class="pure-button" href="/remote_follow">Remote follow</a></li>
<li class="nav-item"><a class="pure-button" href="/" {% if request.path == "/" %}class="selected"{% endif %}>Notes <small class="badge">{{ notes_count }}</small></a></li>
{% if session.logged_in %}<li class="nav-item"><a class="pure-button" href="/with_replies" {% if request.path == "/with_replies" %}class="selected"{% endif %}>With replies <small class="badge">{{ with_replies_count }}</small></a></li>
{% endif %}
<li class="nav-item"><a class="pure-button" href="/liked" {% if request.path == "/liked" %}class="selected"{% endif %}>Liked <small class="badge">{{ liked_count }}</small></a></li>
<li class="nav-item"><a class="pure-button" href="/followers"{% if request.path == "/followers" %} class="selected" {% endif %}>Followers <small class="badge">{{ followers_count }}</small></a></li>
{% if not config.HIDE_FOLLOWING or session.logged_in %}<li id="menu-item-following" class="nav-item"><a class="pure-button" href="/following"{% if request.path == "/following" %} class="selected" {% endif %}>Following <small class="badge">{{ following_count }}</small></a></li>{% endif %}
</ul>
</nav>
</div>
<div class="footer">
&copy;<script>d=new Date();document.write(d.getFullYear())</script> {{ config.COPYRIGHT }} | <a href="{{ config.IMPRINT }}">Imprint</a> | <a href="{{ config.PRIVACY }}">Privacy</a> | <a href="{{ config.SOURCE_URL }}">Source</a><br/>
Powered by a fork of <a href="https://microblog.pub">microblog.pub</a> and the <a href="https://activitypub.rocks">ActivityPub</a> protocol
</div>
</div>
{% endif %}
